package com.neusoft.mid.msf.common.constant;

/**
 * @program: pangu
 * @description: 系统常量
 * @author: fengjd
 * @create: 2022-07-25 10:13
 **/
public class CommonContants {
    public final static String RESOURCE_TYPE_MENU = "menu";
    public final static String RESOURCE_TYPE_BTN = "button";
    public final static String RESOURCE_TYPE_URI = "uri";

//    用户token异常
    public final static Integer EX_USER_INVALID_CODE = 40101;
//    客户端token异常
    public final static Integer EX_CLIENT_INVALID_CODE = 40301;
    public final static Integer EX_CLIENT_FORBIDDEN_CODE = 40331;
    public final static Integer EX_OTHER_CODE = 500;

    public final static String CONTEXT_KEY_USER_ID = "currentUserId";
    public final static String CONTEXT_KEY_USER_NAME = "currentUserName";
    public final static String CONTEXT_KEY_USER_TOKEN = "currentUserToken";

    public final static String JWT_KEY_USER_ID = "userId";
    public final static String JWT_KEY_NAME = "name";

    public final static String APP_NAME_ADMIN = "admin";
    public final static String APP_NAME_AUTH = "auth";

    public final static String CURRENT_SYSLOG = "SYSLOGINTERCEPTOR_CURRENT_SYSLOG";
    public final static String EXCEPTION_ATTRIBUTE_NAME = "exception_attribute";
}
